CC=g++ -g
LINK= $(shell wx-config --libs)
OPT= $(shell wx-config --cxxflags)

all: \
	AdplatformApp.o \
	AdSkin.o \
	LoginDlg.o \
	QuickThread.o \
	SkinButton.o \
	SkinStatic.o
	$(CC) $(^F) $(LINK) -o ad.bin

AdplatformApp.o: AdplatformApp.cpp AdplatformApp.h
	$(CC) $(OPT) -c $< -o $@

AdSkin.o: AdSkin.cpp AdSkin.h
	$(CC) $(OPT) -c $< -o $@

LoginDlg.o: LoginDlg.cpp LoginDlg.h
	$(CC) $(OPT) -c $< -o $@

QuickThread.o: ../../library/QuickThread.cpp ../../library/QuickThread.h 
	$(CC) $(OPT) -c $< -o $@

SkinButton.o: ../../library/skin/SkinButton.cpp ../../library/skin/SkinButton.h 
	$(CC) $(OPT) -c $< -o $@

SkinStatic.o: ../../library/skin/SkinStatic.cpp ../../library/skin/SkinStatic.h 
	$(CC) $(OPT) -c $< -o $@

clean:
	rm *.o
	rm ad.bin

